package com.waves.chat.domain.pojo.msg;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: Quan
 * @description: 文件基类
 * @date: 2024/10/07 下午 2:47
 */


@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class BaseFilePOJO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 大小（字节）
     */
    @NotNull
    private Long size;

    /**
     * 下载地址
     */
    @NotBlank
    private String url;
}
